<ion-view title="联系人">
    <ion-nav-buttons side="right">
        <button class="button button-clear button-outline" ng-if="EDITE_MODEL" ui-sref="app.hotel-contact-edit"> 添加</button>
    </ion-nav-buttons>
    <ion-content class="crm-content">
        <ion-refresher
                pulling-text="下拉刷新"
                on-refresh="contacts.refresh()">
        </ion-refresher>
        <ul class="list">
            <li class="item item-icon-right" ng-repeat="user in contacts.data" ng-click="modifyContact(user)">
                <div class="row">
                    <div class="col-60">
                        <h2>{{user.name}}&nbsp;&nbsp;&nbsp;&nbsp;{{contactDict[user.roleId]}}</h2>
                        <p>{{user.hotelName}}</p>
                    </div>
                    <div class="col-40 text-right">
                        <p>{{user.phone}}</p>
                    </div>
                </div>
                <i class='icon ion-android-call icon-accessory'  style="color: #f97c0d;" ng-click="showTelList($event, [user.phone])"></i>
            </li>
            <li class='item text-center' ng-if="contacts.loaded && contacts.data.length==0">
                <p>暂无联系人</p>
            </li>
        </ul>
    </ion-content>
</ion-view>